//
// Created by 🕊️ on 24-8-6.
//
#include "time.h"

#ifndef ZUC_DECRYPT_2_0_DECRYPT_H
#define ZUC_DECRYPT_2_0_DECRYPT_H

#define BAD_DATA -1

typedef struct {
    char name[8];
    int heart_rate;
} DecryptedData;

int decrypt(DecryptedData *decrypted_data, const char *cipher_text, int len);
void print_decrypted_data(const DecryptedData *decrypted_data);


typedef struct {
    char name[8];
    int heart_rate;
    time_t time;
} WrappedData;

void build_wrapped_data(WrappedData *w, const DecryptedData *d);
void print_wrapped_data(const WrappedData *w);

#endif